package com.dtzhejiang.social.supervision.risk.engine.server.endpoint;


import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

/**
 * 健康检查
 * @Author: Lexus
 * @Date: 2020/12/8 10:00
 */
@Configuration
@Endpoint(id = "heartbeat")
public class HeartbeatEndPoint {

    @ReadOperation
    public Map<String, Object> endpoint() {
        Map<String, Object> map = new HashMap<>(16);
        map.put("message", "this is my endpoint");
        return map;
    }
}
